/** When your routing table is too long, you can split it into small modules**/
import Layout from '@/layout'

const activityRouter = {
  path: '/activity',
  component: Layout,
  redirect: 'activity',
  name: 'activity',
  meta: {
    title: '活动审核',
    icon: 'edit',
    roles: ['admin', 'check', 'activityFlow']
  },
  children: [
    {
      path: 'activityList',
      component: () => import('@/views/a-MyViews/Activity/ActivityCheck/index'),
      name: 'activityList',
      meta: { title: '活动审核', noCache: true, roles: ['admin', 'check'] }
    },
    {
      path: 'DataVisualization',
      component: () => import('@/views/a-MyViews/DataVisualization/ActivityData'),
      name: 'DataVisualization',
      meta: { title: '活动列表', noCache: true, roles: ['admin', 'check', 'activityFlow'] }
    }
  ]
}

export default activityRouter
